package com.salton123.arch.view;

import android.graphics.drawable.Drawable;

import com.hjq.bar.OnTitleBarListener;

import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;

/**
 * User: 巫金生(newSalton@outlook.com)
 * Date: 2017/7/12 15:22
 * Time: 15:22
 * Description:
 */
public interface ITitleView {

    // 左标题
    ITitleView setLeftIcon(@DrawableRes int resId);

    ITitleView setLeftIcon(Drawable drawable);

    ITitleView setLeftText(CharSequence leftText);

    ITitleView setLeftText(@StringRes int stringId);

    ITitleView setLeftColor(int color);

    ITitleView setLeftBackground(@DrawableRes int id);

    ITitleView setLeftBackground(Drawable drawable);

    ITitleView setLeftSize(int unit, float size);

    // 右标题
    ITitleView setRightIcon(@DrawableRes int resId);

    ITitleView setRightIcon(Drawable drawable);

    ITitleView setRightText(CharSequence rightText);

    ITitleView setRightText(@StringRes int stringId);

    ITitleView setRightColor(int color);

    ITitleView setRightBackground(@DrawableRes int id);

    ITitleView setRightBackground(Drawable drawable);

    ITitleView setRightSize(int unit, float size);

    // 标题
    ITitleView setTitleTextColor(int color);

    ITitleView setTitleText(CharSequence titleText);

    ITitleView setTitleText(@StringRes int stringId);

    ITitleView setTitleSize(int unit, float size);


    ITitleView setTitleGravity(int gravity);

    //分割线
    ITitleView setLineVisible(boolean visible);

    ITitleView setLineColor(int color);

    ITitleView setLineDrawable(Drawable drawable);

    ITitleView setLineSize(int px);

    // 设置文字和图标的间距
    ITitleView setDrawablePadding(int px);

    // 设置子 View 内间距
    ITitleView setChildPadding(int px);

    ITitleView setOnTitleBarListener(OnTitleBarListener l);
}

